﻿//============================================================
//write by bxl at 2021-06-06 09:45:34
//============================================================



using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.SystemProtocolConfig;

namespace BCService.TMS.SystemProtocolConfig
{
    public interface ISystemProtocolConfigService
    {
        /// <summary>
        /// 添加新系统协议配置纪录
        /// </summary>
        /// <param name="systemProtocolConfigRequestDto"></param>
        /// <param name="admin"></param>
        /// <returns></returns>
        SystemProtocolConfigDto Add(SystemProtocolConfigRequestDto systemProtocolConfigRequestDto, AdminDto admin);

        /// <summary>
        /// 删除系统协议配置记录
        /// </summary>
        /// <param name="systemProtocolConfigKey"></param>
        /// <returns></returns>
        void Delete(string systemProtocolConfigKey);

        /// <summary>
        /// 获取系统协议配置记录
        /// </summary>
        /// <param name="systemProtocolConfigKey"></param>
        /// <returns></returns>
        SystemProtocolConfigDto GetById(string systemProtocolConfigKey);

        /// <summary>
        /// 获取系统协议配置记录--[分页]
        /// </summary>
        /// <param name="protocolTitle"></param>
        /// <param name="protocolContent"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageableList<SystemProtocolConfigDto> GetList(string protocolTitle, string protocolContent, int pageIndex, int pageSize);

        /// <summary>
        /// 修改系统协议配置记录
        /// </summary>
        /// <param name="systemProtocolConfigDto"></param>
        /// <param name="admin"></param>
        /// <returns></returns>
        SystemProtocolConfigDto Update(SystemProtocolConfigDto systemProtocolConfigDto, AdminDto admin);
    }
}